package com.pyk.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor

public class UserAnswer {
    private Integer id;
    private Integer userId;
    private  Integer questionId;
    private  Integer homeworkId;
    private String answer;
    private LocalDateTime submitTime;
    private Integer score;
    private  Integer examId;

    public void getSubmitTime(LocalDateTime now) {
    }

    @Override
    public String toString() {
        return "UserAnswer{" +
                "id=" + id +
                ", userId=" + userId +
                ", questionId=" + questionId +
                ", homeworkId=" + homeworkId +
                ", answer='" + answer + '\'' +
                ", submitTime=" + submitTime +
                ", score=" + score +
                ", examId=" + examId +
                '}';
    }
}
